package com.park.service.impl.pub;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.pub.LinkModel;
import com.park.client.service.pub.LinkService;
import com.park.dao.pub.LinkMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("linkService")
public class LinkServiceImpl  extends BaseServiceImpl<LinkModel> implements LinkService {
	
	@Autowired
	private LinkMapper linkMapper;

	@Override
	public boolean insert(LinkModel link) {
		return linkMapper.insert(link) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return linkMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(LinkModel record) {
		return linkMapper.insertSelective(record)==1;
	}
	@Override
	public LinkModel selectByPrimaryKey(Long id) {
		return linkMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(LinkModel record) {
		return linkMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(LinkModel record) {
		return linkMapper.updateByPrimaryKey(record) == 1;
	}
	@Override
	public List<LinkModel> selectAll() {
		return linkMapper.selectAll();
	}
	@Override
	public List<LinkModel> selectPagination(LinkModel t) {
		return linkMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(LinkModel t) {
		return linkMapper.selectTotal(t);
	}
	

}
